package com.ideyatech.errorhandling.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "GROUP_AUTHORITY")
public class GroupAuthority extends BaseEntity {

    @Column(name = "AUTHORITY")
    private String authority;
    
    @ManyToOne
    @JoinColumn(name = "GROUP_ID")
    private Group group;

    public String getAuthority() {
	return authority;
    }

    public void setAuthority(String authority) {
	this.authority = authority;
    }

    public Group getGroup() {
	return group;
    }

    public void setGroup(Group group) {
	this.group = group;
    }

}
